<?php if (!defined('THINK_PATH')) exit(); echo ($head_meta); ?><title><?php echo ($action); ?> | <?php echo (C("title")); ?></title></head><!-- END HEAD --><!-- BEGIN BODY --><body class="page-header-fixed"><!-- BEGIN HEADER --><div class="header navbar navbar-inverse navbar-fixed-top"><!-- BEGIN TOP NAVIGATION BAR --><div class="navbar-inner"><div class="container-fluid"><!-- BEGIN LOGO --><a class="brand" href="<?php echo U('Admin/Index/index');?>"><img
					src="__PUBLIC__/admin/assets/img/logo.png" alt="logo" /></a><!-- END LOGO --><!-- BEGIN RESPONSIVE MENU TOGGLER --><a href="javascript:;" class="btn-navbar collapsed"
					data-toggle="collapse" data-target=".nav-collapse"><img
					src="__PUBLIC__/admin/assets/img/menu-toggler.png" alt="" /></a><!-- END RESPONSIVE MENU TOGGLER --><!-- BEGIN TOP NAVIGATION MENU --><ul class="nav pull-right"><!-- BEGIN USER LOGIN DROPDOWN --><li class="dropdown user"><a href="#" class="dropdown-toggle"
						data-toggle="dropdown"><img alt=""
							src="__PUBLIC__/admin/assets/img/avatar1_small.jpg" /><span
							class="username"><?php echo ($username); ?></span><i class="icon-angle-down"></i></a><ul class="dropdown-menu"><li><a href="<?php echo U('Admin/Index/index');?>"><i
									class="icon-user"></i>个人信息</a></li><li class="divider"></li><li><a href="<?php echo U('Admin/Login/logout');?>"><i
									class="icon-key"></i>退出</a></li></ul></li><!-- END USER LOGIN DROPDOWN --></ul><!-- END TOP NAVIGATION MENU --></div></div><!-- END TOP NAVIGATION BAR --></div><!-- END HEADER --><!-- BEGIN CONTAINER --><div class="page-container row-fluid"><!-- BEGIN SIDEBAR --><div class="page-sidebar nav-collapse collapse"><!-- BEGIN SIDEBAR MENU --><ul class="page-sidebar-menu"><li><!-- BEGIN SIDEBAR TOGGLER BUTTON --><div class="sidebar-toggler hidden-phone"></div><!-- BEGIN SIDEBAR TOGGLER BUTTON --></li><?php echo ($menu); ?></ul><!-- END SIDEBAR MENU --></div><!-- END SIDEBAR --><!-- BEGIN PAGE --><div class="page-content"><!-- BEGIN PAGE CONTAINER--><div class="container-fluid"><!-- BEGIN PAGE HEADER--><div class="row-fluid"><div class="span12"><!-- BEGIN PAGE TITLE & BREADCRUMB--><h3 class="page-title"><?php echo ($action); ?><small>&nbsp;&nbsp;<?php echo (C("title")); ?></small></h3><ul class="breadcrumb"><li><a href="<?php echo ($module_url); ?>"><?php echo ($module); ?></a><i
								class="icon-angle-right"></i></li><li><a href="<?php echo ($action_url); ?>"><?php echo ($action); ?></a></li></ul><!-- END PAGE TITLE & BREADCRUMB--></div></div><!-- END PAGE HEADER--><!-- BEGIN PAGE CONTENT--><div class="row-fluid"><div class="span12"><!-- BEGIN EXAMPLE TABLE PORTLET--><div class="portlet box light-grey"><div class="portlet-title"><div class="caption"><i class="icon-globe"></i><?php echo ($action); ?></div></div><div class="portlet-body"><div class="clearfix"><div class="btn-group"><a href="<?php echo U('Admin/Posts/add');?>"><button id="sample_editable_1_new" class="btn green">
												发布文章<i class="icon-plus"></i></button></a></div></div><table class="table table-striped table-bordered table-hover"
									id="sample_1"><thead><tr><th style="width: 8px;"><input type="checkbox"
												class="group-checkable" data-set="#sample_1 .checkboxes" /></th><th>标题</th><th>作者</th><th>分类 &&标签</th><th>发布日期</th><th>操作</th></tr></thead><tbody><?php if(is_array($posts)): foreach($posts as $key=>$v): ?><tr class="odd gradeX"><td><input type="checkbox" class="checkboxes" value="1" /></td><td><a
												href="<?php echo U('Admin/Posts/posts', array('id' => $v[post_id]));?>"
												title="<?php echo ($v["post_title"]); ?>"><?php echo ($v["post_title"]); ?></a></td><td><a
												href="<?php echo U('Admin/access/editAdmin', array('aid' => $v['post_user']['user_id']));?>"><?php echo ($v["post_user"]["user_nicename"]); ?></a></td><td>											分类:<?php if(is_array($v['pcs'])): $i = 0; $__LIST__ = $v['pcs'];if( count($__LIST__)==0 ) : echo "无分类" ;else: foreach($__LIST__ as $key=>$v_pcs): $mod = ($i % 2 );++$i;?><a
													href="<?php echo U('Posts/category', array('id' => $v_pcs['cat_id']));?>"><?php echo ($v_pcs['cat_name']); ?></a>&nbsp;&nbsp;<?php endforeach; endif; else: echo "无分类" ;endif; ?>											标签:<?php if(is_array($v['pts'])): $i = 0; $__LIST__ = $v['pts'];if( count($__LIST__)==0 ) : echo "无标签" ;else: foreach($__LIST__ as $key=>$v_pts): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Posts/tag', array('id' => $v_pts['tag_id']));?>"><?php echo ($v_pts['tag_name']); ?></a>&nbsp;&nbsp;<?php endforeach; endif; else: echo "无标签" ;endif; ?></td><td><?php echo ($v["post_date"]); ?></td><td><a
												href="<?php echo U('Admin/Posts/del', array('id' => $v[post_id]));?>">删除</a></td></tr><?php endforeach; endif; ?></tbody></table></div></div><!-- END EXAMPLE TABLE PORTLET--></div></div><!-- END PAGE CONTENT--></div><!-- END PAGE CONTAINER--></div><!-- END PAGE --></div><!-- END CONTAINER --><?php echo ($footer); echo ($foot_js); ?><script>
		jQuery(document).ready(function() {
			App.init();
			TableManaged.init();
		});
	</script></body><!-- END BODY --></html>